package cn.itcast.pojo;

import java.util.Date;
import java.util.List;

public class role {
    private Integer roleId;

    private String roleName;

    private Date createTime;

    private Date modifyTime;

    private String roleAvailable;

    private String role;

    //配置一对多关系映射
    private List<permission> permissions;

    public List<permission> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<permission> permissions) {
        this.permissions = permissions;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName == null ? null : roleName.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getRoleAvailable() {
        return roleAvailable;
    }

    public void setRoleAvailable(String roleAvailable) {
        this.roleAvailable = roleAvailable == null ? null : roleAvailable.trim();
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role == null ? null : role.trim();
    }
}